package com.crp.broker.util;

import com.crp.broker.entity.User;
import com.crp.broker.model.UserBean;

public class BeanUtil {
    public static UserBean build(User user) {
        UserBean bean = new UserBean();
        bean.setUid(user.getUid());
        bean.setName(user.getName());
        bean.setAge(user.getAge());
        return bean;
    }
}
